#ifndef RTE_RTC_H
#define	RTE_RTC_H

#include "time.h"
#include <stm32f10x.h>


#define RTCClockOutput_Enable
typedef enum
{
    UNKNOW,
    LSE,
    HSEDIV128
} RtcClockSource;

void rtc_init(void);
void rtc_settime(struct tm *NowTime);
uint8_t rtc_gettime(struct tm *NowTime );
//struct tm Time_GetCalendarTime( void );

void ShutDownTimeSave(struct tm *NoTime );
uint16_t ShutDownTimeRead( void );


#endif	/* RTE_RTC_H */


